package com.lm.netty;

import com.lm.netty.TcpServer.BootNettyTcpServer;
import com.lm.netty.UdpServer.BootNettyUdpServer;
import com.lm.netty.service.Test;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;

import java.lang.annotation.Target;

/**
 * @author liuming
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class NettyApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext con = SpringApplication.run(NettyApplication.class,args);
        Test test = (Test) con.getBeanFactory().getBean("Test");
        test.test();
    }



}
